﻿using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using M_CharactorSystem;
using UnityEngine;

public class PlayerAttr : ICharactorAttr {

	protected int AddHp = 0; //每次升级新增加的血量
	protected int Level = 0; //等级

	

	public PlayerAttr()
	{
		
	}

	//获取等级
	public int GetLevel()
	{
		return Level;
	}

	//提升等级
	public void AddLevel()
	{
		Level += 1;
	}

	//设置当前的新增血量
	public void AddMaxHp(int addHp)
	{
		AddHp = addHp;
	}

	//获取最大生命值
	public override int GetMaxHp()
	{
		return MaxHp + AddHp;
	}
	
	
}
